package com.ruiysoft.controller.sys.res;

import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModelProperty;
import org.springframework.validation.annotation.Validated;

import java.util.Objects;

/**
 * UserResponse
 */
@Validated
@javax.annotation.Generated(value = "io.swagger.codegen.languages.SpringCodegen", date = "2018-10-28T15:44:49.584+08:00")

public class UserResponse   {
  @JsonProperty("identity")
  private Integer identity = null;

  @JsonProperty("mobile")
  private String mobile = null;

  @JsonProperty("personnelId")
  private Long personnelId = null;

  @JsonProperty("realName")
  private String realName = null;

  @JsonProperty("shopId")
  private Long shopId = null;

  @JsonProperty("userName")
  private String userName = null;

  public UserResponse setUserName(String userName) {
    this.userName = userName;
    return this;
  }

  public UserResponse identity(Integer identity) {
    this.identity = identity;
    return this;
  }

  /**
   * 1是店主
   * @return identity
  **/
  @ApiModelProperty(example = "1", value = "1是店主")


  public Integer getIdentity() {
    return identity;
  }

  public void setIdentity(Integer identity) {
    this.identity = identity;
  }

  public UserResponse mobile(String mobile) {
    this.mobile = mobile;
    return this;
  }

  /**
   * Get mobile
   * @return mobile
  **/
  @ApiModelProperty(example = "13691226986", value = "")


  public String getMobile() {
    return mobile;
  }

  public void setMobile(String mobile) {
    this.mobile = mobile;
  }

  public Long getPersonnelId() {
    return personnelId;
  }

  public UserResponse setPersonnelId(Long personnelId) {
    this.personnelId = personnelId;
    return this;
  }

  public Long getShopId() {
    return shopId;
  }

  public UserResponse setShopId(Long shopId) {
    this.shopId = shopId;
    return this;
  }

  public String getRealName() {
    return realName;
  }

  public UserResponse setRealName(String realName) {
    this.realName = realName;
    return this;
  }

  @Override
  public boolean equals(Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    UserResponse userResponse = (UserResponse) o;
    return Objects.equals(this.identity, userResponse.identity) &&
        Objects.equals(this.mobile, userResponse.mobile);
  }

  @Override
  public int hashCode() {
    return Objects.hash(identity, mobile);
  }

  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class UserResponse {\n");
    
    sb.append("    identity: ").append(toIndentedString(identity)).append("\n");
    sb.append("    mobile: ").append(toIndentedString(mobile)).append("\n");
    sb.append("}");
    return sb.toString();
  }

  /**
   * Convert the given object to string with each line indented by 4 spaces
   * (except the first line).
   */
  private String toIndentedString(Object o) {
    if (o == null) {
      return "null";
    }
    return o.toString().replace("\n", "\n    ");
  }
}

